package com.fengmi.controller;

import com.fengmi.service.GoodsSkuService;
import com.fengmi.vo.ResultVO;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Author 123
 * @Date 2022/1/25 9:34
 * @Version 1.0
 */

@RestController
@RequestMapping("sku")
@CrossOrigin
@Api(tags = "商品sku管理")
public class GoodsSkuController {

    @Autowired
    private GoodsSkuService goodsSkuService;

    @GetMapping("{spuId}")
    public ResultVO findSkusBySpuId(@PathVariable String spuId) {
        return goodsSkuService.findGoodsSkuBySpuId(spuId);
    }


}
